<template>
	<view>
		<view class="frame"></view>
		<text class="invationCods">邀请人</text>
		<view class="invationBox">
			<image class="inavtionImg" :src="list.member_avatar"></image>
			<text class="name">{{list.member_name}}</text>
			<text class="inavtionTime">邀请时间: {{list.inviter_time}}</text>
			<text class="id">ID:{{list.member_id}}</text>
		</view>
	</view>
</template>

<script>
	import Require from '@/common/require.js';
	export default {
		data() {
			return {
			list:''
			};
			
		},
		onLoad() {
		
		},
		onShow() {
			var self=this
			self.get_url()
		},
		methods:{
			get_url(){
				var self=this
				Require.commonRequest({
					url: '/api/member/myinviter',
					success: function(ret) {
						if(ret.data.code==200){
							self.list=ret.data.data.inviter
						}else{
							uni.showToast({
								icon: 'none',
								title: ret.data.msg,
							});
						}
					},
					fail: function() {
						uni.showToast({
							icon: "none",
							title: "网络异常，请稍后再试"
						})
					}
				})
			},
		},
	}
</script>

<style lang="scss">
 .frame{
		  display: block;
		  width:10rpx;
		  height:30rpx;
		  background:rgba(115,34,216,1);
		  border-radius:5rpx;
		  position: absolute;
		  top: 30rpx;
		  left: 20rpx;
	  }
      .invationCods{
		  font-size:28rpx;
		  font-family:PingFang SC;
		  font-weight:400;
		  color:rgba(51,51,51,1);
		  position: absolute;
		  top: 25rpx;
		  left: 42rpx;
	  }
	  .invationBox{
		  width:710rpx;
		  height:120rpx;
		  background:rgba(255,255,255,1);
		  border-radius:10rpx;
		  position: absolute;
		  top: 90rpx;
		  left: 20rpx;
		  }
		  .inavtionImg{
			  width:80rpx;
			  height:80rpx;
			  position: absolute;
			  top: 20rpx;
			  left: 10rpx;
		  }
		  .name{
			  font-size:32rpx;
			  font-family:PingFang SC;
			  font-weight:400;
			  color:rgba(51,51,51,1);
			  position: absolute;
			  top: 19rpx;
			  left: 115rpx;
		  }
		  .inavtionTime{
			  font-size:22rpx;
			  font-family:PingFang SC;
			  font-weight:400;
			  color:rgba(142,142,142,1);
			  position: absolute;
			  top: 70rpx;
			  left: 115rpx;
		  }
		  .id{
			  font-size:24rpx;
			  font-family:PingFang SC;
			  font-weight:400;
			  color:rgba(142,142,142,1);
			  position: absolute;
			  top:45rpx;
			  right: 22rpx;
		  }
</style>
